home *** CD-ROM | disk | FTP | other *** search
- // --------------------------------------------------------------------------------------------------------------
- //
- // MPackMUI V1.01 GUI Header
- //
- // --------------------------------------------------------------------------------------------------------------
-
- #include <exec/types.h>
- #include <intuition/classusr.h>
- #include <libraries/gadtools.h>
- #include <libraries/mui.h>
-
- #include <clib/alib_protos.h>
- #include <proto/muimaster.h>
-
- #include "Enum.h"
-
- // --------------------------------------------------------------------------------------------------------------
-
- // Internal Prototypes
-
- void CreateGUI();
-
- // External Prototypes
-
- void CleanUp();
- void DoEasyReq(char *);
-
- // Defines
-
- #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
-
- // GUI stuff
-
- extern Object *App;
- extern Object *Windows[];
- extern Object *Gadgets[];
- extern APTR Menus[];
-
- const char *Labels[] = { "Encode", "Decode", "Email", "NG", NULL };
-
- const char *PrefsCycleLabels[] = {
- "application/",
- "audio/",
- "image/",
- "video/",
- NULL
- };
-
- extern const char *DefaultMIMETypes[];
- extern char *MIMETypes[];
-
- struct NewMenu MenuData[] = {
- { NM_TITLE, "Project", 0, 0, 0, (APTR)0 },
- { NM_ITEM, "About...", "A", 0, 0, (APTR)MEN_ABOUT },
- { NM_ITEM, "About MUI...", 0, 0, 0, (APTR)MEN_ABOUTMUI },
- { NM_ITEM, NM_BARLABEL, 0, 0, 0, (APTR)0 },
- { NM_ITEM, "Quit", "Q", 0, 0, (APTR)MEN_QUIT },
- { NM_TITLE, "Settings", 0, 0, 0, (APTR)0 },
- { NM_ITEM, "MIME Prefs...", 0, 0, 0, (APTR)MEN_MIMEPREFS },
- { NM_ITEM, "MUI...", 0, 0, 0, (APTR)MEN_MUIPREFS },
- { NM_END, NULL, 0, 0, 0, (APTR)0 }
- };
-
- struct NewMenu Menu2Data[] = {
- { NM_TITLE, "Edit", 0, 0, 0, (APTR)0 },
- { NM_ITEM, "Reset to Defaults...", "D", 0, 0, (APTR)MEN_RESET },
- { NM_ITEM, "Last Saved", "L", 0, 0, (APTR)MEN_LASTSAVED },
- { NM_ITEM, "Restore", "R", 0, 0, (APTR)MEN_RESTORE },
- { NM_ITEM, NM_BARLABEL, 0, 0, 0, (APTR)0 },
- { NM_ITEM, "Import AWeb 3 Prefs...", 0, 0, 0, (APTR)MEN_IMPORTAWEB },
- { NM_ITEM, "Import Voyager 3 Prefs...", 0, 0, 0, (APTR)MEN_IMPORTVOYAGER },
- { NM_END, NULL, 0, 0, 0, (APTR)0 }
- };
-
- extern struct Hook MenuAboutHook, MenuMIMEPrefsHook, MenuResetPrefsHook, MenuLastSavedPrefsHook;
- extern struct Hook MenuRestorePrefsHook, MenuImportAwebPrefsHook, MenuImportVoyagerPrefsHook, Page1InputPopHook;
- extern struct Hook Page1OutputPopHook, Page1DescPopHook, Page1DescCheckHook, Page1MaxCheckHook;
- extern struct Hook Page1EncodeButtonHook, Page2InputPopHook, Page2OutputPopHook, Page2DecodeButtonHook;
- extern struct Hook Page3InputPopHook, Page3DescPopHook, Page3DescCheckHook, Page3MaxCheckHook;
- extern struct Hook Page3EncodeButtonHook, Page4InputPopHook, Page4DescPopHook, Page4DescCheckHook;
- extern struct Hook Page4MaxCheckHook, Page4EncodeButtonHook, PrefsMIMEListHook, PrefsMIMEUpdateHook;
- extern struct Hook PrefsAddButtonHook, PrefsRemoveButtonHook, PrefsCopyButtonHook, PrefsSortButtonHook;
- extern struct Hook PrefsSaveButtonHook, PrefsUseButtonHook, PrefsCancelButtonHook;
-
- // --------------------------------------------------------------------------------------------------------------
-
- // End Of Text
-